﻿using System;
using System.Collections.Generic;
using System.Text;
using EasyExam.View.PaperView;
using EasyExam.DataServer.Paper;

namespace EasyExam.Presenter.PaperPresenter
{
    public abstract class BasePaperPresenter
    {
        public IPaperView View { get; protected set; }
        public PaperModel Model { get; protected set; }

        public BasePaperPresenter(IPaperView view, PaperModel model)
        {
            this.View = view;
            this.Model = model;

            this.View.Load += (sender, args) =>
            {
                this.OnViewLoad();
            };
        }

        protected virtual void OnViewLoad() { }
    }
}
